package com.gxa.jjty.core.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @author 雅风
 */
@Data
@NoArgsConstructor
@AllArgsConstructor

@Table(name = "return_service") // 创建数据表的注解

@ApiModel("服务回访的实体")
@Validated
public class ReturnService implements Serializable {

  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @Column(name = "id")
  @JsonIgnore
  private Long id;

  @Column(name = "order_id")
  private Long orderId;

  @Column(name = "state")
  @JsonIgnore
  private Boolean state;

  @Column(name = "content")
  private String content;

  @Column(name = "created_time")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Timestamp createdTime;

  @Column(name = "satisfaction")
  private Integer satisfaction;


}
